package com.demo;

public class DVD extends Item {
    private  String director;

    public DVD(String title, String director, int playingTime, String comment) {

        super(title,playingTime,false,comment);
        this.director = director;
    }

    @Override
    //@Override  重写父类的方法
    public void print() {

        System.out.print("DVD: ");
        super.print();
        System.out.println(" director:"+director);

    }
}
